namespace Learnive.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Vakken1 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Huiswerks",
                c => new
                    {
                        huiswerkID = c.Int(nullable: false, identity: true),
                        huiswerkNaam = c.String(),
                        huiswerkDatum = c.String(),
                        vakID = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.huiswerkID)
                .ForeignKey("dbo.Vakjes", t => t.vakID, cascadeDelete: true)
                .Index(t => t.vakID);
            
        }
        
        public override void Down()
        {
            DropIndex("dbo.Huiswerks", new[] { "vakID" });
            DropForeignKey("dbo.Huiswerks", "vakID", "dbo.Vakjes");
            DropTable("dbo.Huiswerks");
        }
    }
}
